{if $need_header_footer}
{template common/header}
{template misc/js_sharebutton}
<div class="container" id="nav-cat-outer">
	{template pin/navmenu}
</div>
{/if}
<div class="container">
	<div class="span9 main formpage">
		{template pin/list-subcats}
		<div class="mt10 mb10">
			<a class="btn btn-large" href="{url share/post}">{lang post_share}</a>
			<div class="mt10 mb10 pull-right">
				$pages
			</div>
		</div>
		<table class="table table-hover">
			<thead>
	          <tr class="black05bg theader">
	            <th class="icon"></th>
	            <th class="subject">{lang share_title}</th>
	            <th class="by">{lang author}</th>
	            <th class="num">{lang view}</th>
	            <th class="by">{lang lastposter}</th>
	          </tr> 
	        </thead>
			<tbody>
			{loop $shares $share}
				<tr {if $share['dtype']==2 }class="info"{/if}>
				  <td class="icon">
	                  {if $share['dtype']==2 }
						<img src="{imagedir}icon-stick.png" width="16">
					  {elseif $share['closed']}
						<img src="{imagedir}folder_lock.gif">
					  {else}
						<a href="$share['link']" target="_blank">
							<img src="{imagedir}folder_$share['item_type'].png">
					  	</a>
	                  {/if}
                  </td>
                  <td class="subject">
	                  <a {if $share['highlight']}class="highlight_{$tshare['highlight']}"{/if} href="$share['link']">
	                  	{echo sysSubStr($share['title'], '70','...')}
	                  </a>
	                  {if $share['dtype']==1}
	                  	<span class="label label-warning">{lang digist}</span> 
	                  {/if}
                  </td>
                  <td class="by">
					<cite><a data-user-id="$share['lastposter_id']" data-user-profile="1" href="{url home/user?uid=$share['lastposter_id']}">{$share['user_nickname']}</a></cite>
					<em><a href="#"><span>{date $share['create_time']}</span></a></em>
				  </td>
                  <td class="num"><cite>{$share['total_comment']}</cite>
					<em>{$share['total_click']}</em></td>
                  <td class="by">
					<cite><a data-user-id="$share['lastposter_id']" data-user-profile="1" href="{url home/user?uid=$share['lastposter_id']}">{$share['lastposter']}</a></cite>
					<em><a href="#"><span>{date $share['lastpost_time']}</span></a></em>
				  </td>
                </tr>
			{/loop}
			</tbody>
		</table>
		<div class="mt10 mb10">
			<a class="btn btn-large" href="{url share/post}">{lang post_share}</a>
			<div class="mt10 mb10 pull-right">
				$pages
			</div>
		</div>
	</div>
	<div class="span3 secondary">
		<div class="navmenu span3 clearfix">
			<div class="navtitle">
				<span>{lang search_ads}</span>
			</div>
		</div>
		{template common/secondary}
	</div>
</div>
{if $need_header_footer}
{template js_tpl/comment_waterfall_tpl}
{template common/footer}
{/if}